package com.java.bean;

import com.java.util.DateUtil;

public class BootstrapTableExpress {
    private int id;
    private String number;
    private String company;
    private String username;
    private String userphone;
    private String sysphone;
    private String code;
    private String status;
    private String intime;
    private String outtime;

    public BootstrapTableExpress(Express e) {
        id = e.getId();
        number = e.getNumber();
        company = e.getCompany();
        username = e.getUsername();
        userphone = e.getUserphone();
        sysphone = e.getSysphone();
        code = e.getCode() == null ? "已取件" : e.getCode();
        status = e.getEstatus() == 0 ? "未取件" : "已取件";
        intime = DateUtil.format(e.getIntime());
        outtime = e.getOuttime() == null ? "未出库" : DateUtil.format(e.getOuttime());
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserphone() {
        return userphone;
    }

    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }

    public String getSysphone() {
        return sysphone;
    }

    public void setSysphone(String sysphone) {
        this.sysphone = sysphone;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getIntime() {
        return intime;
    }

    public void setIntime(String intime) {
        this.intime = intime;
    }

    public String getOuttime() {
        return outtime;
    }

    public void setOuttime(String outtime) {
        this.outtime = outtime;
    }
}
